home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / asm / mach-default / mach_traps.h < prev    next >
C/C++ Source or Header  |  2005-10-13  |  558b  |  30 lines

  1. /*
  2.  *  include/asm-i386/mach-default/mach_traps.h
  3.  *
  4.  *  Machine specific NMI handling for generic.
  5.  *  Split out from traps.c by Osamu Tomita <tomita@cinet.co.jp>
  6.  */
  7. #ifndef _MACH_TRAPS_H
  8. #define _MACH_TRAPS_H
  9.  
  10. static inline void clear_mem_error(unsigned char reason)
  11. {
  12.     reason = (reason & 0xf) | 4;
  13.     outb(reason, 0x61);
  14. }
  15.  
  16. static inline unsigned char get_nmi_reason(void)
  17. {
  18.     return inb(0x61);
  19. }
  20.  
  21. static inline void reassert_nmi(void)
  22. {
  23.     outb(0x8f, 0x70);
  24.     inb(0x71);        /* dummy */
  25.     outb(0x0f, 0x70);
  26.     inb(0x71);        /* dummy */
  27. }
  28.  
  29. #endif /* !_MACH_TRAPS_H */
  30.